<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0 user-scalable=yes">
    <link href="css/jquery.mobile-1.2.0.min.css" rel="stylesheet" type="text/css" />
    <!--<link href="css/jquery.mobile.structure-1.2.0.min.css" rel="stylesheet" type="text/css" />
    <link href="css/jquery.mobile.theme-1.2.0.min.css" rel="stylesheet" type="text/css" />-->
    <!--<link href="css/reset.css" rel="stylesheet" type="text/css" />-->
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="js/jquery.mobile-1.2.0.min.js" type="text/javascript"></script>
    <script src="js/Oup.Http.URL.js"></script>
    <script src="js/config.js"></script>
    <style type="text/css">
        #tiles img
        {
            width: 90px;
        }
    </style>
</head>
<body>
    <div id="page" data-role="page" id="searchresult">
        <div id="header" data-theme="b" data-role="header" class="ui-header ui-bar-b" role="banner" data-position="fixed" style="position: fixed;">
            <h1 class="ui-title" role="heading" aria-level="1">搜索结果</h1>
            <a data-ajax="true" data-rel="back" data-icon="arrow-l" href="#" class="ui-btn-left ui-btn ui-btn-up-a ui-shadow ui-btn-corner-all ui-btn-icon-left" data-corners="true" data-shadow="true" data-iconshadow="true" data-wrapperels="span" data-theme="a">
                <span class="ui-btn-inner ui-btn-corner-all">
                    <span class="ui-btn-text">返回</span>
                    <span class="ui-icon ui-icon-arrow-l ui-icon-shadow">&nbsp;</span>
                </span>
            </a>
        </div>
        <div id="main" role="main" data-role="content">
            <iframe src="" style="width: 100%; height: 100%; border: 0px;" id="rq_PageMain"></iframe>
        </div>
        <div id="footer" data-role="footer" class="ui-footer ui-bar-a" role="contentinfo" data-position="fixed" style="position: fixed;">
            <div data-role="navbar" data-iconpos="top">
                <ul>
                    <li>
                        <a data-ajax="false" href="index.html" data-theme="a" data-icon="">每日推荐
                        </a>
                    </li>
                    <li>
                        <a data-ajax="false" href="list.html" data-theme="a" data-icon="">卖场
                        </a>
                    </li>
                    <li>
                        <a data-ajax="false" href="my.html" data-theme="a" data-icon="">我的
                        </a>
                    </li>
                    <li>
                        <a href="#" data-theme="a" data-icon="" class="ui-btn-active">搜索
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <script type="text/javascript">
            $(function () {
                var url = Oup.Http.URL.getQueryString('url');
                $("#rq_PageMain").attr("src", url);
                //setTimeout(autoHeight, 3000);
                //alert($("#rq_PageMain").document.body.scrollHeight);
                //$("#rq_PageMain").height(5000);
                //autoHeight();
            });
            
            //function GetIframeStatus() {
            //    var iframe = document.getElementById("rq_PageMain");
            //    var iframeWindow = iframe.contentWindow;
            //    //内容是否加载完
            //    if (iframeWindow.document.readyState == "complete") {
            //        var iframeWidth, iframeHeight;
            //        //获取Iframe的内容实际宽度
            //        iframeWidth = iframeWindow.document.documentElement.scrollWidth;
            //        //获取Iframe的内容实际高度
            //        iframeHeight = iframeWindow.document.documentElement.scrollHeight;
            //        //设置Iframe的宽度
            //        iframe.width = iframeWidth;
            //        //设置Iframe的高度
            //        iframe.height = iframeHeight;
            //    }
            //    else {
            //        setTimeout(GetIframeStatus, 10);
            //    }
            //}
            
            //function autoHeight() {
            //    var iframe = document.getElementById("rq_PageMain");
            //    if (iframe.Document) {//ie自有属性
            //        iframe.style.height = iframe.Document.documentElement.scrollHeight;
            //    } else if (iframe.contentDocument) {//ie,firefox,chrome,opera,safari
            //        alert(iframe.contentDocument.body.offsetHeight);
            //        iframe.height = iframe.contentDocument.body.offsetHeight;
            //    }
            //}
            //$(window).bind("hashchange", function (e) {
            //    var url = Oup.Http.URL.getQueryString('url');
            //    $("#rq_PageMain").attr("src", url);
            //});
        </script>
    </div>

</body>
</html> 